/**
 * 服务端API请求地址
 * Created by zlp on 2018-01-13.
 */
 const base_url = "http://172.5.0.32:8081/tf-api-member/";
// const base_url = "http://172.5.0.108:8080/";                    //郭杰
//const base_url = "http://172.5.0.90:8080/";                    //杨云博

const version = "api/v1/cn/";
module.exports = {

    //<公共接口>
    common: {
        email_unique: base_url + "common/email_unique",                     //验证email唯一性 get
        send_email_verify_code: base_url + "common/verify_code",            //获取验证码到邮箱 get
        mobile_unique: base_url + "common/mobile_unique",                   //验证手机唯一性 get
        send_mobile_verify_code: base_url + "common/mobile_verify_code",    //获取验证码到手机 get
        get_rate: base_url + "common/rate",                                 //获取汇率 get
        upload_img: base_url + "common/images",                             //上传图片 post
        get_img: base_url + "common/images/",                               //获取图片 get
    },

    web: {
        //登录
        login: {
            signup_mobile: base_url + "login/customer/mobile",                              //手机登录 put
            logout: base_url + version + "customer/logout",                                 //客户登出 put
        },
        //密码管理
        password:{
            login_retrieve: base_url + "password/customer/login/retrieve",                  //找回登录密码 get
            login_retrieve_reset: base_url + "password/customer/login/retrieve_reset",      //找回登录密码-重置密码 put
            login_reset: base_url + "customer/password/login/reset",                        //重置登录密码 put
            trade_set: base_url + "customer/password/trade/set",                            //设置交易密码 post
            trade_retrieve: base_url + "password/customer/trade/retrieve",                  //找回交易密码 get
            trade_retrieve_reset: base_url + "/password/customer/trade/retrieve_reset",     //找回交易密码-重置密码 put
            trade_reset: base_url + "customer/password/trade/reset",                        //重置交易密码 put
        },
        //#注册管理
        reg: {
            mobile: base_url + "register/customer/reg/mobile",                              //手机注册 post
            authentication: base_url + version + "customer/info/authentication",            //实名认证 post
        },

        //#资金管理
        funds:{
            funds_record: base_url + version +"customer/fund/invest_balance_update_log", //获取投资账户余额变更列表 get
            funds_order: base_url + version +"customer/fund/order",                      //获取订单列表 get
            funds_profits: base_url + version +"customer/fund/profit",                //获取利润列表 get
        },

        //#个人中心
        personal_center:{
            base_info: base_url + version +"customer/info",                        //获取客户信息      get
            bank_cards:base_url + version +"customer/info/bankcard",               //获取银行卡信息列表 get
            parters:base_url + version +"customer/child" ,                         //获取下级列表      get
            reset_login_passwd:base_url + version +"customer/password/login/reset",//重置登录密码  put
            reset_trade_passwd:base_url + version +"customer/password/trade/reset",//重置交易密码  put
            mobile: base_url + "register/customer/reg/mobile",                              //手机注册 post
            authentication: base_url + version + "customer/info/authentication",            //实名认证 post
        }
    },
    sale :{
        login:{
            signup_email: base_url + "/login/sales/mobile",                       //销售登录

        },
        logout:{
            signout: base_url + "/api/v1/cn/sales/logout",                           //登出
        },
        //销售管理
        sale_info :{
            info : base_url + version +"sales/info",                                  //获取销售信息
        },
        //客户管理
        sale_cust :{
            cust : base_url + version + "sales/customer/info",                          //客户列表\详情
        },
        //资金管理
        sale_deduct :{
            deduct: base_url + version +"sales/fund/reward",                           //提成列表\详情
        }
    }
};

